/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package umis2.nivel;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import java.io.Serializable;

/**
 *
 * @author Alex
 */
public abstract class Personaje implements PerimetroColision, Relacionable, Serializable{
    
    private int estado;
    private int salud;
    private Rectangle rectangulo;

    public Personaje (){
        rectangulo = new Rectangle();
    }

    public abstract void mover(Point punto);

    public abstract void saltar();

    public abstract void atacar(int tipo);

    public void setTamanio(int ancho, int alto){
        rectangulo.setSize(ancho, alto);
    }

    public Dimension getTamanio(){
        return rectangulo.getSize();
    }

    public Point getPosicion(){
        return rectangulo.getLocation();
    }
    
    public void setPosicion(Point point){
        this.rectangulo.setLocation(point);
    }

    public Rectangle getRectangulo(){
        return rectangulo;
    }

}
